<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <?php

    @mysql_connect("localhost", "root", "") or die($ERROR1);
	@mysql_select_db("demo") or die("Loi cmnr");
	mysql_query("SET NAMES 'utf8'");
     
    
    $sql = "SELECT * FROM member";
     
  
    $result = mysql_query($sql);
     
   
    if (mysql_num_rows($result) > 0)
    {
		$numrows = mysql_num_rows($result);
		$rowcount = 1;
       while($row=mysql_fetch_assoc($result)){
		   
		print "Row $rowcount<br/>";
		foreach($row as $var => $val){
			print "<B>$var</B>: $val<br/>";
		}
		print "<br/>";
		++$rowcount;  
	   }
    }else {
        print "ko co xe";
    }

?>
    </body>
</html>
